<template>
  <div class="">
     <p>登录界面</p>
    <button @click="bar()">跳转</button>
  </div>
</template>

<script setup>
import router from "../router";
const bar=()=>{
  localStorage.setItem("token",'1')
  router.push('/index')
}
</script>

<style lang="less">

</style>